<template>
  <div class="error-log">

    <el-table
      :data="logList"
      border>
      <el-table-column prop="err" label="错误信息" min-width="180">
        <template slot-scope="scope">
          <el-tooltip class="item" effect="dark" placement="top-start">
            <div slot="content">{{ scope.row.err.message }}</div>
            <div>{{ scope.row.err.message }}</div>
          </el-tooltip>
        </template>
      </el-table-column>
      <el-table-column prop="info" label="错误位置" min-width="180"></el-table-column>
      <el-table-column prop="url" label="url" min-width="180"></el-table-column>
    </el-table>

  </div>
</template>

<script>
export default {
  name: "ErrorLog",

  data() {
    return {};
  },

  computed: {
    logList () {
      return this.$store.state["errorLog"].logs;
    }
  },

  created () {},

  mounted () {
    console.log(this.$store.state["errorLog"].logs);
  },

  methods: {}
};
</script>

<style lang="scss" scoped>
</style>
